#ifndef DVNEWEDITINDICATORDIALOG_H
#define DVNEWEDITINDICATORDIALOG_H

#include <QDialog>
#include "dvDatabaseController.h"
#include "dvDatabaseControllerUsable.h"

namespace Ui {
class dvNewEditIndicatorDialog;
}

class dvNewEditIndicatorDialog : public QDialog, public dvDatabaseControllerUsable
{
    Q_OBJECT
    
public:
    explicit dvNewEditIndicatorDialog(QWidget *parent = 0);
    ~dvNewEditIndicatorDialog();

    inline void setEditMode(bool edit){m_edit = edit;}

    inline const DV_INDICATOR& getIndicator(){return m_indicator;}
    void setIndicator(const DV_INDICATOR& i);
    
private:
    Ui::dvNewEditIndicatorDialog *ui;
    bool      m_edit;
    QString   m_nameEdit;
    DV_INDICATOR m_indicator;

private slots:
    void clickedOk();
    void clickedCancel();
};

#endif // DVNEWEDITINDICATORDIALOG_H
